package com.pro.dao;

import java.util.List;
import java.util.Map;

import com.pro.pojo.User;

public interface UserMapper {
	List<User> getUserByCondition(Map<String, Object> condition) throws Exception;
	//查询
	List<User> selectUser(User user)throws Exception;
	User selectByUser(User user)throws Exception;
	//查询根据openid
	List<User> selectByOpenid(String openid)throws Exception;
	//新增
	void saveSelective(User user)throws Exception;
	//修改
	void updateUser(User user)throws Exception;
	//查询总数
	int selectCount(User user)throws Exception;
	int selectCountByOpenid(User user)throws Exception;
	//删除
	void deleteUserByOpenid(String openid)throws Exception;
}
